package cadtoolbox.graphical;

import java.awt.BasicStroke;
import java.awt.Stroke;

import cadtoolbox.model.OligoGraph;

import org.apache.commons.collections15.Transformer;

public class AnimationEdgeStrokeTransformer<E> implements Transformer<E, Stroke> {

	private OligoGraph<?,E> graph;
	
	public AnimationEdgeStrokeTransformer(OligoGraph<?,E> graph){
		this.graph = graph;
	}
	
	@Override
	public Stroke transform(E arg0) {
		
		return new BasicStroke((float) Math.min(10.0, graph.getTemplateConcentration(arg0)/10.0));
	}

	
	
}
